package com.wanmait.recruit.pojo;

import java.io.Serializable;
import java.util.Date;

public class PersonInfo implements Serializable {
    private Integer id;

    /**
	* 用户ID
	*/
    private Integer personId;

    /**
	* 消息内容
	*/
    private String content;

    /**
	* 是否已读
	*/
    private Boolean isRead;

    /**
	* 消息来源用户ID
	*/
    private Integer resourcePersonId;
    private Person resourcePerson;

    public Person getResourcePerson() {
        return resourcePerson;
    }

    public void setResourcePerson(Person resourcePerson) {
        this.resourcePerson = resourcePerson;
    }

    private Boolean enable;

    /**
	* 时间
	*/
    private Date time;
    private String timeStr;

    public String getTimeStr() {
        return timeStr;
    }

    public void setTimeStr(String timeStr) {
        this.timeStr = timeStr;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPersonId() {
        return personId;
    }

    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getIsRead() {
        return isRead;
    }

    public void setIsRead(Boolean isRead) {
        this.isRead = isRead;
    }

    public Integer getResourcePersonId() {
        return resourcePersonId;
    }

    public void setResourcePersonId(Integer resourcePersonId) {
        this.resourcePersonId = resourcePersonId;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", personId=").append(personId);
        sb.append(", content=").append(content);
        sb.append(", isRead=").append(isRead);
        sb.append(", resourcePersonId=").append(resourcePersonId);
        sb.append(", enable=").append(enable);
        sb.append(", time=").append(time);
        sb.append("]");
        return sb.toString();
    }
}